package corej.course.basic;

public class TestArray2 {
    public static void main(String[] args) {
        int[][] a = new int[3][];
        a[0] = new int[2];
        a[1] = new int[4];
        a[2] = new int[3];

        // int[][] a=new int[][3];//Error!!!!

        // int[][] a={{1,2,3,4},{5,6,7,8},{9,10,11,12}};
        /*
           * System.out.println(a.length); System.out.println(a[0].length);
           * System.out.println(a[1].length); System.out.println(a[2].length);
           */
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                System.out.print(a[i][j] + "\t");
            }
            System.out.println();
        }
    }
}